#include "service.hpp"

using namespace std;

void usage(const string &args) {
    cout << "Usage: " << args << " server_port\n\t" << args << " 8080" << endl;
}
int main(int argc, char *argv[]) {
    if(argc != 2) {
        usage(argv[0]);
        return -1;
    }

    uint16_t port = stoi(argv[1]);
    server sv(port);
    sv.init();
    sv.run();
    return 0;
}